# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(ScryptLib)

if(DEFINED PACKAGE_FIND_FILE)
    include(${PACKAGE_FIND_FILE})
endif()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}
                    ${CMAKE_CURRENT_SOURCE_DIR}/include)

# Set the OHOS_STL environment variable
set(OHOS_STL c++_static CACHE STRING "Set OHOS_STL to c++_static")

add_library(scrypt SHARED napi_init.cpp scrypt.c salsa20.c)
target_link_libraries(scrypt PUBLIC libace_napi.z.so)
